package com.rd.utils;

import cn.hutool.core.util.StrUtil;

public class RegexUtils {


    public static boolean isPhoneInvalid(String phone) {
        return mismatch(phone, RegexPatterns.PHONE_REGEX);
    }

    private static boolean mismatch(String phone, String phoneRegex) {
        if (StrUtil.isBlank(phone)){
            return false;
        }
        return phone.matches(phoneRegex);
    }
}
